package com.ruoyi.base.service.impl;

import java.util.List;
import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.base.mapper.BusWaterSegmentattributeMapper;
import com.ruoyi.base.domain.BusWaterSegmentattribute;
import com.ruoyi.base.service.IBusWaterSegmentattributeService;

/**
 * 断面控制级别、属性等数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-30
 */
@Service
public class BusWaterSegmentattributeServiceImpl implements IBusWaterSegmentattributeService 
{
    @Autowired
    private BusWaterSegmentattributeMapper busWaterSegmentattributeMapper;

    /**
     * 查询断面控制级别、属性等数据
     * 
     * @param id 断面控制级别、属性等数据主键
     * @return 断面控制级别、属性等数据
     */
    @Override
    public BusWaterSegmentattribute selectBusWaterSegmentattributeById(String id)
    {
        return busWaterSegmentattributeMapper.selectBusWaterSegmentattributeById(id);
    }

    /**
     * 查询断面控制级别、属性等数据列表
     * 
     * @param busWaterSegmentattribute 断面控制级别、属性等数据
     * @return 断面控制级别、属性等数据
     */
    @Override
    public List<BusWaterSegmentattribute> selectBusWaterSegmentattributeList(BusWaterSegmentattribute busWaterSegmentattribute)
    {
        return busWaterSegmentattributeMapper.selectBusWaterSegmentattributeList(busWaterSegmentattribute);
    }

    /**
     * 新增断面控制级别、属性等数据
     * 
     * @param busWaterSegmentattribute 断面控制级别、属性等数据
     * @return 结果
     */
    @Override
    public int insertBusWaterSegmentattribute(BusWaterSegmentattribute busWaterSegmentattribute)
    {
        busWaterSegmentattribute.setId(UUID.randomUUID().toString());
        return busWaterSegmentattributeMapper.insertBusWaterSegmentattribute(busWaterSegmentattribute);
    }

    /**
     * 修改断面控制级别、属性等数据
     * 
     * @param busWaterSegmentattribute 断面控制级别、属性等数据
     * @return 结果
     */
    @Override
    public int updateBusWaterSegmentattribute(BusWaterSegmentattribute busWaterSegmentattribute)
    {
        return busWaterSegmentattributeMapper.updateBusWaterSegmentattribute(busWaterSegmentattribute);
    }

    /**
     * 批量删除断面控制级别、属性等数据
     * 
     * @param ids 需要删除的断面控制级别、属性等数据主键
     * @return 结果
     */
    @Override
    public int deleteBusWaterSegmentattributeByIds(String[] ids)
    {
        return busWaterSegmentattributeMapper.deleteBusWaterSegmentattributeByIds(ids);
    }

    /**
     * 删除断面控制级别、属性等数据信息
     * 
     * @param id 断面控制级别、属性等数据主键
     * @return 结果
     */
    @Override
    public int deleteBusWaterSegmentattributeById(String id)
    {
        return busWaterSegmentattributeMapper.deleteBusWaterSegmentattributeById(id);
    }
}
